package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusZhncFlowMapper;
import com.ruoyi.business.domain.BusZhncFlow;
import com.ruoyi.business.service.IBusZhncFlowService;

/**
 * 流量统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-30
 */
@Service
public class BusZhncFlowServiceImpl implements IBusZhncFlowService 
{
    @Autowired
    private BusZhncFlowMapper busZhncFlowMapper;

    /**
     * 查询流量统计
     * 
     * @param id 流量统计主键
     * @return 流量统计
     */
    @Override
    public BusZhncFlow selectBusZhncFlowById(Long id)
    {
        return busZhncFlowMapper.selectBusZhncFlowById(id);
    }

    /**
     * 查询流量统计列表
     * 
     * @param busZhncFlow 流量统计
     * @return 流量统计
     */
    @Override
    public List<BusZhncFlow> selectBusZhncFlowList(BusZhncFlow busZhncFlow)
    {
        return busZhncFlowMapper.selectBusZhncFlowList(busZhncFlow);
    }

    /**
     * 新增流量统计
     * 
     * @param busZhncFlow 流量统计
     * @return 结果
     */
    @Override
    public int insertBusZhncFlow(BusZhncFlow busZhncFlow)
    {
        return busZhncFlowMapper.insertBusZhncFlow(busZhncFlow);
    }

    /**
     * 修改流量统计
     * 
     * @param busZhncFlow 流量统计
     * @return 结果
     */
    @Override
    public int updateBusZhncFlow(BusZhncFlow busZhncFlow)
    {
        return busZhncFlowMapper.updateBusZhncFlow(busZhncFlow);
    }

    /**
     * 批量删除流量统计
     * 
     * @param ids 需要删除的流量统计主键
     * @return 结果
     */
    @Override
    public int deleteBusZhncFlowByIds(Long[] ids)
    {
        return busZhncFlowMapper.deleteBusZhncFlowByIds(ids);
    }

    /**
     * 删除流量统计信息
     * 
     * @param id 流量统计主键
     * @return 结果
     */
    @Override
    public int deleteBusZhncFlowById(Long id)
    {
        return busZhncFlowMapper.deleteBusZhncFlowById(id);
    }
}
